Skip to content

Add Sendable conformance to various structs and enums #894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2025

Conversation

bogdan
Copy link
Contributor

@bogdan bogdan commented Jul 24, 2025

  • Updated EthereumAddress and its nested AddressType enum to conform to Sendable.
  • Modified BlockNumber enum to conform to Sendable.
  • Added Sendable conformance to CodableTransaction struct.
  • Updated TransactionType enum and AbstractEnvelope protocol to conform to Sendable.
  • Added Sendable conformance to AccessListEntry struct.
  • Modified TransactionMetadata struct to conform to Sendable.

Test Data or Screenshots

- Updated `EthereumAddress` and its nested `AddressType` enum to conform to `Sendable`.
- Modified `BlockNumber` enum to conform to `Sendable`.
- Added `Sendable` conformance to `CodableTransaction` struct.
- Updated `TransactionType` enum and `AbstractEnvelope` protocol to conform to `Sendable`.
- Added `Sendable` conformance to `AccessListEntry` struct.
- Modified `TransactionMetadata` struct to conform to `Sendable`.
@yaroslavyaroslav
Copy link
Collaborator

Seems like this remote test constantly fails on this PR.

Test Case '-[remoteTests.EIP1559Tests testEIP1159MainnetTransaction]' failed (0.127 seconds).

Ps: you can run pipeline on your fork, AFAIK all the gateway keys are stored in plain.

@bogdan
Copy link
Contributor Author

bogdan commented Jul 25, 2025

@yaroslavyaroslav I checked out to previous commit 11f9c4a and it is still failing. I don't see my changes break it.

This test is actually using a live address https://etherscan.io/address/0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B
trying to send 0.1 ETH somewhere which at the moment has lower balance.
That is why it fails.

I believe this is a completely separated issue to fix.

@yaroslavyaroslav yaroslavyaroslav merged commit 4ea879b into web3swift-team:develop Jul 25, 2025
1 of 3 checks passed
@yaroslavyaroslav
Copy link
Collaborator

True, thank you for your contribution, I'll release it asap

@bogdan
Copy link
Contributor Author

bogdan commented Aug 10, 2025

@yaroslavyaroslav I would appreciate the release.

@yaroslavyaroslav
Copy link
Collaborator

Done. 3.3.1 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants